package com.example.baimao_tp.network

import com.example.baimao_tp.data.model.MediaResponse
import retrofit2.http.GET
import retrofit2.http.Query

interface ApiService {
    @GET("api/v1/public/media")
    suspend fun getMediaList(
        @Query("page") page: Int = 1,
        @Query("page_size") pageSize: Int = 50
    ): MediaResponse

    @GET("api/v1/public/media")
    suspend fun getMediaListWithTags(
        @Query("page") page: Int = 1,
        @Query("pageSize") pageSize: Int = 10,
        @Query("tags") tags: String,
        @Query("type") type: String = "image",
        @Query("sortBy") sortBy: String = "created_at",
        @Query("sortOrder") sortOrder: String = "desc"
    ): MediaResponse
}